package com.dubbo.boot.provider.service;

import com.dubbo.boot.api.DemoService;
import org.apache.dubbo.config.annotation.Service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Descrtption DemoServiceImpl
 * @Author luke
 * @Date 2020/4/9
 **/
@Service(version = "1.0.0")
public class DemoServiceImpl implements DemoService {

    private final Logger logger = LoggerFactory.getLogger(getClass());

    @Override
    public String sayHello(String name) {
        logger.info("sayHello,{}",name);
        return "Hi," + name;
    }

}
